package com.evaluation.kexingcp.psycho.evaluation.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.evaluation.kexingcp.common.data.datascope.DataScope;
import com.evaluation.kexingcp.psycho.evaluation.sys.entity.EvaluationFactorRecordsEntity;
import com.evaluation.kexingcp.psycho.evaluation.sys.mapper.EvaluationFactorRecordsMapper;
import com.evaluation.kexingcp.psycho.evaluation.sys.service.EvaluationFactorRecordsService;
import org.springframework.stereotype.Service;
/**
 * 测评记录
 *
 * @author pig
 * @date 2024-07-12 09:48:41
 */
@Service
public class EvaluationFactorRecordsServiceImpl extends ServiceImpl<EvaluationFactorRecordsMapper, EvaluationFactorRecordsEntity> implements EvaluationFactorRecordsService {

    @Override
    public <E extends IPage<EvaluationFactorRecordsEntity>> E page(E page, Wrapper<EvaluationFactorRecordsEntity> queryWrapper) {
        return baseMapper.selectPageByScope(page, queryWrapper, DataScope.of());
    }

    public <E extends IPage<EvaluationFactorRecordsEntity>> E page(E page, EvaluationFactorRecordsEntity entity) {
        return baseMapper.getRecordsPage(page, entity, DataScope.of());
    }
}